/*
 */

package jas.bank;

import jas.rpc.server.ObjectIdBank;
import jas.rpc.server.ObjectIdBankImpl;
import jas.rpc.server.cluster.JGroupStateFactory;

/**
 *
 *
 */
public class BankStateFactory implements JGroupStateFactory {

    public ObjectIdBank createState() {
        ObjectIdBank ids = new ObjectIdBankImpl();
        Bank bank = new BankImpl();
        ids.bind("bank", bank);
        return ids;
    }
    
}
